<?php 
if (isset($_SESSION['uid'])){
    $uid=$_SESSION['uid'];
}else{
    exit;
}
include './c/config.php';
$mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
if (!$mysqli->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqliTwo->error);}
$sql="SELECT * FROM `app_student` where id='".$uid."' limit 0,1 ";  
$query=$mysqli->query($sql);
if($query->num_rows>0){
    $userInfo=array();
    while ($list=$query->fetch_assoc()){
        $userInfo=$list;
    }
}else{
    exit;
}
 
$title='2023上海市中学生现代文阅读素养活动';
?><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<title></title>
<style>
html,body{font-size:16px;background:#f1f1f4;width:100%;font-size:12px;color:#fff;font-family:Microsoft YaHei, Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;}
body, div{position:relative;padding:0px;margin:0px auto;max-width:640px;}
.weui-dialog{position:fixed;z-index:5000;width:80%;max-width:300px;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#FFF;text-align:center;border-radius:3px;overflow:hidden}.weui-dialog__hd{padding:1.3em 1.6em .5em}.weui-dialog__title{font-weight:400;font-size:18px}.weui-dialog__bd{padding:0 1.6em .8em;min-height:40px;font-size:15px;line-height:1.3;word-wrap:break-word;word-break:break-all;color:#999}.weui-dialog__bd:first-child{padding:1.2em 20px .1em;color:#353535}.weui-dialog__ft{position:relative;line-height:48px;font-size:18px;display:-webkit-box;display:-webkit-flex;display:flex}.weui-dialog__ft:after{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1px solid #D5D5D6;color:#D5D5D6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-dialog__btn{display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#3CC51F;text-decoration:none;-webkit-tap-highlight-color:transparent;position:relative}.weui-dialog__btn:active{background-color:#EEE}.weui-dialog__btn:after{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1px solid #D5D5D6;color:#D5D5D6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleX(.5);transform:scaleX(.5)}.weui-dialog__btn:first-child:after{display:none}.weui-dialog__btn_default{color:#353535}.weui-dialog__btn_primary{color:#0BB20C}@media screen and (min-width:1024px){.weui-dialog{width:35%}}.weui-mask{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6)}
.weui-mask_transparent{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0}
.js_dialog{display:none;}
.weui-toast {position: fixed;z-index: 5000;width: 7.6em;min-height: 7.6em;top: 180px;left: 50%;margin-left: -3.8em;background: rgba(17, 17, 17, 0.7);text-align: center;border-radius: 5px;color: #FFFFFF;}
.weui-loading {width: 20px;height: 20px;display: inline-block;vertical-align: middle;
animation: weuiLoading 1s steps(12, end) infinite;background: transparent url() no-repeat;background-size: 100%;}
@-webkit-keyframes weuiLoading {
    0% {
        transform: rotate3d(0, 0, 1, 0deg);
    }

    100% {
        transform: rotate3d(0, 0, 1, 360deg);
    }
}
@keyframes weuiLoading {
    0% {
        transform: rotate3d(0, 0, 1, 0deg);
    }

    100% {
        transform: rotate3d(0, 0, 1, 360deg);
    }
}
.weui-icon_toast.weui-loading {
    margin: 30px 0 0;
    width: 38px;
    height: 38px;
    vertical-align: baseline;
}
.weui-toast__content {
    margin: 0 0 15px;
}
-webkit-touch-callout:none;
-webkit-user-select:none;
html{-ms-touch-action:none;}
div,img{-webkit-tap-highlight-color:rgba(0,0,0,0);}
*{-webkit-text-size-adjust: none;}
.simg{position:absolute;display:block;}
a{text-decoration:none;}
.txt{position:absolute;text-indent:8px;font-size:12px;z-index:2;border:none;background:transparent;}
.txt::-webkit-input-placeholder {color:#58595b;text-align:left;}
select{position:absolute;display:block;background:transparent;border:0px;text-indent:8px;font-size:12px;-webkit-appearance:none;}
.container{position:relative;width:100%;height:auto;overflow:hidden;}
.zkz{position:absolute;width:100%;height:100%;opacity:0;background:transparent url('<?php echo $url; ?>/img/bg.jpg') no-repeat;background-size:cover;}
.fade-in{opacity:1;-webkit-transition:opacity 1s ease-in-out;-moz-transition: opacity 1s ease-in-out;-o-transition: opacity 1s ease-in-out;transition: opacity 1s ease-in-out;}
.p-bg{top:0px;left:0px;}
.zkz-txt{position:absolute;color:#000;font-size:12px;}
.zkz-title{position:absolute;width:100%;text-align:center;font-size:16px;font-weight:700;color:#ba0c0d;}
</style></head>
<body>
<div class="container">
  <div class="zkz page">
		<img class="p-bg simg" src="<?php echo $url; ?>/img/z5.png?v=10">
        <!--<div class="zkz-title"><?php echo $title; ?></div>-->
        <div class="zkz-hao zkz-txt"><?php echo $userInfo['hao']; ?></div>
        <div class="zkz-name zkz-txt"><?php echo $userInfo['name']; ?></div>
        <div class="zkz-school zkz-txt"><?php echo $userInfo['school']; ?></div>
        <div class="zkz-nianji zkz-txt"><?php echo $userInfo['nianji']; ?></div>
        <div class="zkz-idcard zkz-txt"><?php echo $userInfo['idcard']; ?></div>
        <div class="zkz-kc zkz-txt"><?php echo $userInfo['kc']; ?></div>
		 
		<div class="zkz-shijian zkz-txt">2024年1月6日（周六）上午9:30-11:00</div>

		<div class="zkz-said zkz-txt">上海市商业学校</div>
		<div class="zkz-dizhi zkz-txt">静安区共和新路1458号</div>
		<div class="zkz-jt zkz-txt">地铁一号线延长路站，46，95，40，518</div>
        
         
        
        <div class="zkz-down simg"></div>
  </div>
 
  
</div>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
_h=h= Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
var sWidth = parseInt((window.innerWidth > 0) ? window.innerWidth : screen.width);
if(sWidth>640){sWidth=640;}
var _rate=(sWidth/640);
if(h<_rate*1028){
	h=_rate*1028;
}
$(".zkz").show().addClass("fade-in");
$(function(){
	$('.container, .page').width(sWidth).height(h);
	$('.p-bg').width(sWidth).height(_rate*1028);
	$('.zkz-title').css({"top":_rate*142});

	$('.zkz-hao').height(_rate*50).css({"top":_rate*218, "left":_rate*232,'lineHeight':_rate*50+'px'});
 
	$('.zkz-name').height(_rate*50).css({"top":_rate*270, "left":_rate*204,'lineHeight':_rate*50+'px'});
	$('.zkz-school').height(_rate*50).css({"top":_rate*330, "left":_rate*204,'lineHeight':_rate*50+'px'});
	$('.zkz-nianji').height(_rate*50).css({"top":_rate*382, "left":_rate*204,'lineHeight':_rate*50+'px'});
	$('.zkz-idcard').height(_rate*50).css({"top":_rate*436, "left":_rate*232,'lineHeight':_rate*50+'px'});
	$('.zkz-kc').height(_rate*50).css({"top":_rate*488, "left":_rate*200,'lineHeight':_rate*50+'px'});
	$('.zkz-time').height(_rate*50).css({"top":_rate*523, "left":_rate*200,'lineHeight':_rate*50+'px'});
	$('.zkz-shijian').height(_rate*50).css({"top":_rate*534, "left":_rate*200,'lineHeight':_rate*50+'px'});
	
	//$('.zkz-zuowei').height(_rate*50).css({"top":_rate*254, "left":_rate*220,'lineHeight':_rate*50+'px'});

	$('.zkz-said').height(_rate*50).css({"top":_rate*582, "left":_rate*200,'lineHeight':_rate*50+'px'});
	$('.zkz-dizhi').height(_rate*50).css({"top":_rate*636, "left":_rate*200,'lineHeight':_rate*50+'px'});
 
	$('.zkz-jt').height(_rate*50).css({"top":_rate*686, "left":_rate*200,'lineHeight':_rate*50+'px'});
 
	$('.zkz-down').width(_rate*220).height(_rate*160).css({"top":_rate*840, "left":_rate*214});

 
	 
	$('.zkz-down').click(function(){
		$.post("img.php", {id:1}, function(data){
			window.location.href="?c=print";
		}, "json");
	});
	
     
});
</script>
</body>
</html>